<extend name="Public:common"/>
<block name="main">
    <!--main部分开始-->
    <div class="blog-main clearfix w1200">
        <div class="fl w890 blog-list">
            <!--干货推荐-->
            <h3 class="blog-pub-title mt30">精华博文</h3>

            <ul class="list-items" id="list">
                <foreach name="articleList" item="item">
                    <li class="list-item">
                        <a target="_blank" href="/news/{$item.id}">
                            <p>{$item.title}</p>
                        </a>
                        <p class="info">{$item.description}</p>
                        <div class="mess">
                            <span><a href="/articleType/{$item.parent.id}">{$item.parent.catname}</a></span>
                            <span class="icon-browse">{$item.hits}</span>
                            <span class="fr colorbb"><?=date("Y-m-d H:i:s", $item[createtime])?></span>
                        </div>
                    </li>
                </foreach>
            </ul> <script type="text/template" id='blog_template'>
            <%for(var i=0;i<items.length;i++){%>
            <li class="list-item">
                <a target=_blank href="/news/item[i].id"><p><%=items[i].title%></p></a>
                <p class="info"><%=items[i].description%></p>
                <div class="mess" >
                    <span><a href="/articleType/<%=items[i].parent.id%>"><%=items[i].parent.catname%></a></span>
                    <span class="icon-browse"><%=items[i].hits%></span>
                    <span class="fr colorbb"><%=items[i].createtime%></span>
                </div>
            </li>
            <%}%>
        </script>
            <div class="load-more" onclick=blogObj.listLoadMore($(this),'/getArticleMore',20) data-page=3 data-flag=true>点击加载更多
                <a href='/article_site_list/{$currentPage+1 > $totalPage ? $totalPage : $currentPage+1}'>下一页</a></div>
            <div class="icon-back-top" onclick="$('html,body').animate({scrollTop:0},'slow');"></div>
        </div>
    </div>
</block>
